<template>
  <div class="main-content">
    <div class="account">
      <div class="search">
        <el-input
          placeholder="请输入要查询的角色名称"
          v-model="input10"
          class="wid-input-165 hei-32 fot-12"
          clearable>
        </el-input>
        <el-button type="primary" class="search-bt">查询</el-button>
        <el-button type="primary" class="bot-add">新增</el-button>
      </div>
      <div class="content-table">
        <el-table
            :data="tableData"
            border
            style="width: 100%">
          <el-table-column
            prop="date"
            align="center"
            label="序号"
            width="180">
          </el-table-column>
          <el-table-column
            prop="name"
            align="center"
            label="角色名称">
          </el-table-column>
          <el-table-column
            align="center"
            label="操作">
            <template slot-scope="scope">
              <el-button @click="handleClick(scope.row)" type="text" size="small">修改</el-button>
              <el-button @click="handleClick(scope.row)" type="text" size="small">删除</el-button>
            </template>
          </el-table-column>
        </el-table>
      </div>
      <div class="page">
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="currentPage4"
          :page-sizes="[1, 2, 3, 4]"
          :page-size="1"
          layout="total, sizes, prev, pager, next, jumper"
          :total="5">
        </el-pagination>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'account',
  components: {},
  data() {
    return {
      input10: '',
      tableData: [{
        date: '1',
        name: '王小虎'
      }, {
        date: '2',
        name: '王小虎'
      }, {
        date: '3',
        name: '王小虎'
      }, {
        date: '4',
        name: '王小虎'
      }],
      currentPage4: 4
    }
  },
  computed: {

  },
  created() {

  },
  methods: {
    handleClick(val) {
      console.log(val)
    },
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`)
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`)
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .account{
    width: 100%;
    overflow: hidden;
    position: relative;
  }
</style>
